#include <stdio.h>

int main() {
	int a = 0;
	int b = 0;
	int c = 0;
	scanf("%d %d %d", &a, &b, &c);
	int sum = a + b + c;
	printf("smollest %d\n", (a < b ? a : b) < c ? (a < b ? a : b) : c);
	printf("middle %d\n", sum - (a < b ? a : b) < c ? (a < b ? a : b) : c - (a > b ? a : b) > c ? (a > b ? a : b) : c);
	printf("bigesst %d\n", (a > b ? a : b) > c ? (a > b ? a : b) : c);
	return 0;

}